﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using prototype123.models;
using prototype123.data_access;

namespace prototype123.controllers
{

    // MaintainAssignmentsController handles Adding/Deleting/Updating Course Information
    class MaintainAssignmentsController
    {

        // Function: AddAssignment
        // Adds an assignment to the db having <stuid>, <name>, <category>, <points_earned>, and <points_possble> as the data to go in the db
        // Preconditions: assumes that the above parameters passed from the UI is valid
        // Postconditions: the database is updated and an assignment is returned
        public Assignment AddAssignment(int stuid ,string name, string category, int points_earned = 0, int points_possible = 0)
        {
            return null;
        }

        // Function: DeleteAssignment
        // Deletes an assignment from the database having <stuid> and <name> and returns the assignment deleted
        // Preconditions: assumes that the above parameters passed from the UI is valid
        // Postconditions: the database has lost one assignment and the deleted assignment is returned
        public Assignment DeleteAssignment(int stuid, string name)
        {
            return null;
        }

        // Function: UpdateAssignment
        // Handles updating the assignment <name> of <stuid> by either changing any of the fields.
        // Preconditions: assumes that the above parameters passed from the UI is valid
        // Postconditions: Updates an assignment in the db with new information, and returns it.
        public Assignment UpdateAssignment(int stuid ,string name, string category, int points_earned = 0, int points_possible = 0)
        {
            return null;
        }

    }
}
